package com.tianheng.wanzhou.datacollecting.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author yjw
 * @since 2020-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("machine_list")
public class MachineList extends Model<MachineList>  implements Serializable{


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     *公司   1-万舟, 2-兰棉, 3-佳而美
     */
    @TableField("company")
    private Integer company;

    /**
     *分厂(车间)
     */
    @TableField("workshop")
    private Integer workshop;

    /**
     * 设备名称
     */
    @TableField("mac_name")
    private String macName;

    /**
     * 设备编号
     */
    @TableField("mac_id")
    private String macId;

    /**
     * 设备ip
     */
    @TableField("mac_ip")
    private String macIp;

    /**
     * 网关
     */
    @TableField("mac_gateway")
    private String macGateway;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态 0-未启用 1--正常 2-未联网
     */
    private Integer status;

    @TableField("mac_type")
    private Integer macType;

    @TableField("send_msg")
    private String sendMsg;

    @TableField("port")
    private Integer port;

    @TableField("son_type")
    private String sonType;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
